import Vue from 'vue'
import Router from 'vue-router'

import Login from '@/components/login'
import index from '@/components/index'
import demo from '@/components/demo'

import HelloIndex from '@/components/HelloIndex'

import accountManage from '@/components/admin/accountManage'
import RoleManage from '@/components/admin/RoleManage'

import exBannerList from '@/components/exchangeBanner/exBannerList'

import RoleList from '@/components/role/roleList'

import countList from '@/components/count/countList'

import share from '@/components/config/share'
import custom from '@/components/config/custom'
import commission from '@/components/config/commission'
import exchange from '@/components/config/exchange'
import JiaMeng from '@/components/config/JiaMeng'


import exchangeCheck from '@/components/config/exchangeCheck'
import exchangeAdd from '@/components/config/exchangeAdd'
import exchangeEdit from '@/components/config/exchangeEdit'


import falseList from '@/components/order/falseList'
// 移动move 联通Unicom 电信telecom 信用卡credit  平安safety 工商business  建设build
import moveT from '@/components/order/moveT'
import moveF from '@/components/order/moveF'
import moveD from '@/components/order/moveD'

import UnicomT from '@/components/order/UnicomT'
import UnicomF from '@/components/order/UnicomF'
import UnicomD from '@/components/order/UnicomD'

import telecomT from '@/components/order/telecomT'
import telecomF from '@/components/order/telecomF'
import telecomD from '@/components/order/telecomD'

import creditT from '@/components/order/creditT'
import creditF from '@/components/order/creditF'
import creditD from '@/components/order/creditD'

import safetyT from '@/components/order/safetyT'
import safetyF from '@/components/order/safetyF'
import safetyD from '@/components/order/safetyD'

import businessT from '@/components/order/businessT'
import businessF from '@/components/order/businessF'
import businessD from '@/components/order/businessD'

import buildT from '@/components/order/buildT'
import buildF from '@/components/order/buildF'
import buildD from '@/components/order/buildD'

import exchangeList from '@/components/exchange/exchangeList'


import areaList from '@/components/area/areaList'

import infoList from '@/components/information/infoList'


import bannerList from '@/components/banner/bannerList'

import cashList from '@/components/cash/cashList'


import carrierList from '@/components/carrier/carrierList'


import finacePer from '@/components/finace/finacePer'
import finaceTeam from '@/components/finace/finaceTeam'

import userList from '@/components/user/userList'


import messageList from '@/components/message/messageList'




Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/demo',
      name: 'demo',
      component: demo
    },
    {
      path: '/index',
      name: 'index',
      component: index,
      children: [
        {
          path: "",
          name: 'HelloIndex',
          component: HelloIndex
        },
        //账号管理
        {
          path: "/accountManage",
          name: 'accountManage',
          component: accountManage,
          meta: ['账号管理', '账号列表'],
        },
  
        {
          path: "/RoleManage",
          name: 'RoleManage',
          component: RoleManage,
          meta: ['账号管理', '权限分配'],
        },
        //角色管理
        {
          path: "/RoleList",
          name: 'RoleList',
          component: RoleList,
          meta: ['角色管理', '角色列表'],
        },
        //兑换教程列表
        {
          path: "/exBannerList",
          name: 'exBannerList',
          component: exBannerList,
          meta: ['兑换教程', '兑换教程列表'],
        },
        //  基础数据管理
        {
          path: "/share",
          name: 'share',
          component: share,
          meta: ['基础数据管理', '分享'],
        },
        {
          path: "/custom",
          name: 'custom',
          component: custom,
          meta: ['基础数据管理', '客服'],
        },
        {
          path: "/commission",
          name: 'commission',
          component: commission,
          meta: ['基础数据管理', '佣金'],
        },
        {
          path: "/exchange",
          name: 'exchange',
          component: exchange,
          meta: ['基础数据管理', '兑换教程'],
        },
        {
          path: "/exchangeAdd",
          name: 'exchangeAdd',
          component: exchangeAdd,
          meta: ['基础数据管理', '兑换教程新增'],
        },
        {
          path: "/exchangeEdit",
          name: 'exchangeEdit',
          component: exchangeEdit,
          meta: ['基础数据管理', '兑换教程编辑'],
        },
        {
          path: "/exchangeCheck",
          name: 'exchangeCheck',
          component: exchangeCheck,
          meta: ['基础数据管理', '兑换教程查看'],
        },
        {
          path: "/JiaMeng",
          name: 'JiaMeng',
          component: JiaMeng,
          meta: ['基础数据管理', '加盟'],
        },

        //订单管理
        {
          path: "/falseList",
          name: 'falseList',
          component: falseList,
          meta: ['订单管理', '虚假订单列表'],
        },
        // 移动move 联通Unicom 电信telecom 信用卡credit  平安safety 工商business  建设build
        {
          path: "/moveT",
          name: 'moveT',
          component: moveT,
          meta: ['订单管理', '移动已通过订单'],
        },
        {
          path: "/moveF",
          name: 'moveF',
          component: moveF,
          meta: ['订单管理', '移动未通过订单'],
        },
        {
          path: "/moveD",
          name: 'moveD',
          component: moveD,
          meta: ['订单管理', '移动待审批订单'],
        },
        {
          path: "/UnicomT",
          name: 'UnicomT',
          component: UnicomT,
          meta: ['订单管理', '联通已通过订单'],
        },
        {
          path: "/UnicomF",
          name: 'UnicomF',
          component: UnicomF,
          meta: ['订单管理', '联通未通过订单'],
        },
        {
          path: "/UnicomD",
          name: 'UnicomD',
          component: UnicomD,
          meta: ['订单管理', '联通待审批订单'],
        },
        {
          path: "/telecomT",
          name: 'telecomT',
          component: telecomT,
          meta: ['订单管理', '电信已通过订单'],
        },
        {
          path: "/telecomF",
          name: 'telecomF',
          component: telecomF,
          meta: ['订单管理', '电信未通过订单'],
        },
        {
          path: "/telecomD",
          name: 'telecomD',
          component: telecomD,
          meta: ['订单管理', '电信待审批订单'],
        },
        {
          path: "/creditT",
          name: 'creditT',
          component: creditT,
          meta: ['订单管理', '信用卡已通过订单'],
        },
        {
          path: "/creditF",
          name: 'creditF',
          component: creditF,
          meta: ['订单管理', '信用卡未通过订单'],
        },
        {
          path: "/creditD",
          name: 'creditD',
          component: creditD,
          meta: ['订单管理', '信用卡待审批订单'],
        },
        {
          path: "/safetyT",
          name: 'safetyT',
          component: safetyT,
          meta: ['订单管理', '平安银行已通过订单'],
        },
        {
          path: "/safetyF",
          name: 'safetyF',
          component: safetyF,
          meta: ['订单管理', '平安银行未通过订单'],
        },
        {
          path: "/safetyD",
          name: 'safetyD',
          component: safetyD,
          meta: ['订单管理', '平安银行待审批订单'],
        },
        {
          path: "/businessT",
          name: 'businessT',
          component: businessT,
          meta: ['订单管理', '工商银行已通过订单'],
        },
        {
          path: "/businessF",
          name: 'businessF',
          component: businessF,
          meta: ['订单管理', '工商银行未通过订单'],
        },
        {
          path: "/businessD",
          name: 'businessD',
          component: businessD,
          meta: ['订单管理', '工商银行待审批订单'],
        },
        {
          path: "/buildT",
          name: 'buildT',
          component: buildT,
          meta: ['订单管理', '建设银行已通过订单'],
        },
        {
          path: "/buildF",
          name: '/buildF',
          component: buildF,
          meta: ['订单管理', '建设银行未通过订单'],
        },
        {
          path: "/buildD",
          name: 'buildD',
          component: buildD,
          meta: ['订单管理', '建设银行待审批订单'],
        },
    
        //兑换管理
        {
          path: "/exchangeList",
          name: 'exchangeList',
          component: exchangeList,
          meta: ['兑换管理', '兑换列表'],
        },

        //地区管理
        {
          path: "/areaList",
          name: 'areaList',
          component: areaList,
          meta: ['地区管理', '地区列表'],
        },
        //公告信息列表
        {
          path: "/infoList",
          name: 'infoList',
          component: infoList,
          meta: ['公告信息', '公告信息列表'],
        },
        //广告图
        {
          path: "/bannerList",
          name: 'bannerList',
          component: bannerList,
          meta: ['广告图', 'banner列表'],
        },

        //提现管理
        {
          path: "/cashList",
          name: 'cashList',
          component: cashList,
          meta: ['提现管理', '提现列表'],
        },
        //运营商管理
        {
          path: "/carrierList",
          name: 'carrierList',
          component: carrierList,
          meta: ['运营商管理', '运营商列表'],
        },

        // 用户管理
        {
          path: "/userList",
          name: 'userList',
          component: userList,
          meta: ['用户管理', '用户列表'],
        },

        //财务管理  
        {
          path: "/finacePer",
          name: 'finacePer',
          component: finacePer,
          meta: ['财务管理', '个人奖励列表'],
        },
        {
          path: "/finaceTeam",
          name: 'finaceTeam',
          component: finaceTeam,
          meta: ['财务管理', '团队奖励列表'],
        },
        //消息列表
        {
          path: "/messageList",
          name: 'messageList',
          component: messageList,
          meta: ['消息管理', '消息列表'],
        },
        //统计管理countList
        {
          path: "/countList",
          name: 'countList',
          component: countList,
          meta: ['统计管理', '消息列表'],
        },
      ]
    },
  ]
})
